package myjava.scanner;

import java.util.Scanner;

public class Root {

   static Scanner io = new Scanner(System.in);

   public static void main(String[] args) {

      System.out.println("Enter an integer motherfucker:");

      if (Root.io.hasNextInt()) {
         System.out.println("Good! You entered: " + Root.io.nextInt());
      } else {
         System.out.println("You entered an invalid vaue");
      }
   }
}